import type { RouteRecordRaw } from 'vue-router'
import HomeView from '@/views/Home.vue'
import CategoriesView from '@/views/Categories.vue'
import WebsitesView from '@/views/Websites.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: HomeView,
    redirect: '/categories',
    children: [
      {
        path: '/categories',
        name: 'Categories',
        component: CategoriesView
      },
      {
        path: '/websites',
        name: 'Websites',
        component: WebsitesView
      }
    ]
  }
]

export default routes